package com.hoshiicloud.shxping;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

@Configuration
@EnableScheduling
@SpringBootApplication(scanBasePackages = {"com.hoshiicloud.shxping","com.hoshiicloud.common"})
@EnableEurekaClient
@EnableCircuitBreaker
@EnableFeignClients
public class HoshiicloudShxpingServiceApplication {

    public static void main(String[] args) {
        try {
            new SpringApplicationBuilder(HoshiicloudShxpingServiceApplication.class).banner(new HoshiicloudShxpingServiceBanner()).run(args);
            System.out.println("------------------>HoshiicloudShxping启动成功");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}